<?php
    namespace app\index\model;
    use think\Model;

    class Role extends Model
    {
        // 定义多对多关联绑定
        public function user()
        {
            return $this->belongsToMany('User','access');
        }
    }
?>